Web Services for Remote Management  14.0
Reference documentation for web service interfaces to support remote management of Symantec Endpoint Protection
List of all members | Static Public Member Functions
com.symantec.sepm.webservice.common.validation.HostNameValidator Class Reference

Validates the host name. More...

Static Public Member Functions

static boolean isValidHostName (String computerHostName)
 Validates the given computer hostname. More...
 
static void validateHostName (String computerHostName) throws InvalidArgumentServiceException
 Validates the given computer hostname. More...
 

Detailed Description

Validates the host name.

Member Function Documentation

static boolean com.symantec.sepm.webservice.common.validation.HostNameValidator.isValidHostName ( String  computerHostName)
static

Validates the given computer hostname.

A valid hostname must be between 1 and 256 characters long and can include the domain name separator (@) only once. The hostname must also contain at least one character other than the domain name separator.

Parameters
computerHostNamethe hostname to validate
Returns
true if the given hostname is considered valid, false otherwise
static void com.symantec.sepm.webservice.common.validation.HostNameValidator.validateHostName ( String  computerHostName) throws InvalidArgumentServiceException
static

Validates the given computer hostname.

A valid hostname must be between 1 and 256 characters long and can include the domain name separator (@) only once. The hostname must also contain at least one character other than the domain name separator.

Parameters
computerHostNamethe hostname to validate
Exceptions
InvalidArgumentServiceExceptionif the hostname is invalid
See also
isValidHostName(String) isValidHostName